# 启用测试
enable_testing()

# 查找GTest
find_package(GTest REQUIRED)

# 包含目录
include_directories(${CMAKE_SOURCE_DIR}/src)

# 测试源文件
set(TEST_SOURCES
    unit/test_wubi_symbol.cpp
    unit/test_radical_semantic.cpp
)

# 创建测试可执行文件
add_executable(unit_tests ${TEST_SOURCES})

# 链接库
target_link_libraries(unit_tests 
    aika_seh_wubi_core
    GTest::GTest
    GTest::Main
)

# 添加测试
add_test(NAME UnitTests COMMAND unit_tests)